# from typing import Optional, List
# from langchain.document_loaders import UnstructuredFileLoader
#
# loader = UnstructuredFileLoader('衣服属性.txt', encoding='utf8')
#
# docs = loader.load()
# print(docs)
# print(len(docs))
# first_01 = docs[0].page_content[:4]
# print('*' * 80)
# print(first_01)
# print('*' * 80)
# from langchain.document_loaders import TextLoader
#
# loader = TextLoader('衣服属性.txt', encoding='utf8')
# docs = loader.load()
# print(docs)
# print(len(docs))
# first_01 = docs[0].page_content[:4]
# print(first_01)
from langchain.document_loaders import TextLoader

loader = TextLoader('衣服属性.txt', encoding='utf8')
docs = loader.load()
print(docs)
from langchain.document_loaders import UnstructuredFileLoader

loader = UnstructuredFileLoader('衣服属性.txt', encoding='utf8')
docs = loader.load()
print(docs)
